<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>表单验证</title>
    <link rel="stylesheet" href="./css/bootstrap.min.css">
    <style>
        .form-container {
            margin-top: 200px;
        }

        .form-group {
            margin-top: 20px;
        }


        #register h2 {
            text-align: center;
            margin-bottom: 40px;
        }
        .help-block{
            margin-bottom: 0;
        }
        .help-block.error{
            color: #a94442;
        }
        .help-block.success{
            color: #3c763d;
        }
    </style>
</head>
<!-- <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span> -->
<body>
    <div class="container">
        <div class="row ">
            <div class="well form-container col-md-8 col-md-offset-2">
                <form action="http://baidu.com" id="register" class="form-horizontal">
                    <h2>注册信息</h2>
                    <div class="form-group has-feedback">
                        <label class="control-label col-md-2" for="email">邮箱地址</label>
                        <div class="col-md-7">
                            <input type="text" class="form-control " id="email" placeholder="请输入邮箱地址" name="email">
                        </div>
                        <span class="help-block col-md-3"> </span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2" for="tel">电话号码</label>
                        <div class="col-md-7">
                            <input type="text" class="form-control " id="tel" placeholder="请输入电话号码" name="tel">
                        </div>
                        <span class="help-block col-md-3"> </span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2" for="username">用户名</label>
                        <div class="col-md-7">
                            <input type="text" class="form-control " id="username" placeholder="请输入电话号码"
                                name="username">
                        </div>
                        <span class="help-block col-md-3"> </span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2" for="password1">密码</label>
                        <div class="col-md-7">
                            <input type="password" class="form-control" id="password1" placeholder="请输入密码"
                                name="password1">
                        </div>
                        <span class="help-block col-md-3"></span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2" for="password2">重复密码</label>
                        <div class="col-md-7">
                            <input type="password" class="form-control" id="password2" placeholder="请再次输入密码"
                                name='password2'>
                        </div>
                        <span class="help-block col-md-3"></span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2">性别</label>
                        <div class="col-md-7">
                            <label class="checkbox-inline">
                                <input type="radio" id="inlineCheckbox11" value="option1" name="gender"> 男
                            </label>
                            <label class="checkbox-inline">
                                <input type="radio" id="inlineCheckbox21" value="option2" name="gender"> 女
                            </label>
                        </div>
                        <span class="help-block col-md-3"></span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2">区域</label>
                        <div class="col-md-7">
                            <select class="form-control" name="city">
                                <option value=""></option>
                                <option value="成都">成都</option>
                                <option value="北京">北京</option>
                                <option value="上海">上海</option>
                            </select>
                        </div>
                        <span class="help-block col-md-3"></span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2">多选</label>
                        <div class="col-md-7">
                            <label class="checkbox-inline">
                                <input type="checkbox" id="inlineCheckbox1" value="a" name="secret"> A
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" id="inlineCheckbox2" value="b" name="secret"> B
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" id="inlineCheckbox3" value="c" name="secret"> C
                            </label>
                        </div>
                        <span class="help-block col-md-3"></span>
                    </div>
                    <div class="form-group">
                        <div class="col-md-7 col-md-offset-2">
                            <label class="checkbox-inline">
                                <input type="checkbox" id="agree" value="agree" name="gender"> 我已经阅读
                            </label>
                        </div>
                        <span class="help-block col-md-3"></span>
                    </div>
                    <div class="form-group">
                        <div class="col-md-9 text-right">
                            <button type="submit" class="btn btn-primary" id="submit">注册</button>
                        </div>
                    </div>
                    
                </form>
            </div>
        </div>
    </div>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <!-- <script src="./js/bootstrap.min.js"></script> -->
    <!-- <script src="./js/formValidate.js"></script> -->
    <script src="./js/validate-form-Es6.js"></script>
    <script src="./js/validate.js"></script>
    <script>
       
    </script>
</body>

</html>